<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>战斗结果测试</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        .test-container {
            max-width: 800px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.1);
            padding: 20px;
            border-radius: 10px;
        }
        .result-content {
            text-align: center;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 30px;
            max-width: 500px;
            width: 90%;
            margin: 0 auto;
            position: relative;
            z-index: 100;
            color: #333;
        }
        .rewards {
            margin: 20px 0;
        }
        .reward-item {
            background: #f0f0f0;
            border-radius: 10px;
            padding: 15px;
            margin: 10px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .result-actions {
            margin-top: 20px;
            display: flex;
            justify-content: center;
            gap: 15px;
        }
        .result-actions button {
            padding: 15px 30px;
            font-size: 1.1rem;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            z-index: 200;
            pointer-events: auto;
            background: #4CAF50;
            color: white;
        }
        .result-actions button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            background: #45a049;
        }
        .result-actions button:disabled {
            background: #ccc;
            cursor: not-allowed;
            pointer-events: none;
        }
        .log {
            background: rgba(0, 0, 0, 0.3);
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
            max-height: 200px;
            overflow-y: auto;
        }
    </style>
</head>
<body>
    <div class="test-container">
        <h1>战斗结果界面测试</h1>
        
        <div class="result-content">
            <h2>战斗胜利!</h2>
            <div class="rewards">
                <div class="reward-item">
                    <span>金币: +50</span>
                </div>
            </div>
            <div class="result-actions">
                <button id="continue-adventure" onclick="testContinue()">继续冒险</button>
            </div>
        </div>
        
        <div class="log">
            <h3>测试日志</h3>
            <div id="test-log"></div>
        </div>
    </div>

    <script>
        function addLog(message) {
            const logContainer = document.getElementById('test-log');
            const logEntry = document.createElement('div');
            logEntry.textContent = new Date().toLocaleTimeString() + ': ' + message;
            logContainer.appendChild(logEntry);
            logContainer.scrollTop = logContainer.scrollHeight;
        }
        
        function testContinue() {
            addLog('继续冒险按钮被点击');
            addLog('测试通过！按钮可以正常点击。');
        }
        
        // 初始化日志
        addLog('战斗结果界面加载完成');
        addLog('点击"继续冒险"按钮测试功能');
    </script>
</body>
</html>
